
				<div class="box span12">
					<div class="box-header" data-original-title>
						<h2><i class="halflings-icon white user"></i><span class="break"></span>角色列表</h2>
						<div class="box-icon">
							<a href="#" class="btn-setting"><i class="halflings-icon white wrench"></i></a>
							<a href="#" class="btn-minimize"><i class="halflings-icon white chevron-up"></i></a>
							<a href="#" class="btn-close"><i class="halflings-icon white remove"></i></a>
						</div>
					</div>
					<div class="box-content">
                        <div class="row-fluid">
                            <div class="span6">
                                <div id="DataTables_Table_0_length" class="dataTables_length">
                                    <label>
                                        <select size="1" name="DataTables_Table_0_length" aria-controls="DataTables_Table_0">
                                            <option value="10" selected="selected">10</option>
                                            <option value="25">25</option>
                                            <option value="50">50</option>
                                            <option value="100">100</option>
                                        </select> 选择分页数
                                    </label>
                                </div>
                            </div>
                            <div class="span6">
                                <div class="dataTables_filter" id="DataTables_Table_0_filter">
                                    <label>搜索:
                                        <input type="text" aria-controls="DataTables_Table_0">
                                    </label>
                                </div>
                            </div>
                        </div>
						<table class="table table-striped table-bordered bootstrap-datatable datatable">
						  <thead>
							  <tr>
								  <th>id</th>
								  <th>权限名称</th>
                                  <th>权限列表</th>
								  <th>状态</th>
								  <th>详细</th>
							  </tr>
						  </thead>
						  <tbody>
                            <?php
                            if(!empty($data)):
                            foreach($data as $k=>$v) :
                            ?>
							<tr>
								<td><?php echo $v['id']?></td>
								<td class="center"><?php echo $v['name']?></td>
                                <td class="center"><?php echo $v['power']?></td>
                                <td filed="status" class="center">
                                    <span class="label label-success db_rev"><?php echo ($v['status']==1) ? '<a id="yes" class="halflings-icon ok"></a>':'<a id="no" class="halflings-icon remove"></a>'?></span>
                                </td>
								<td class="center">
									<a class="btn btn-success" href="#">
										<i class="halflings-icon white zoom-in"></i>
									</a>
									<a class="btn btn-info" href="index.php?c=role&a=edit&admin=1&id=<?php echo $v['id']?>">
										<i class="halflings-icon white edit"></i>
									</a>
									<a class="btn btn-danger" onclick="return confirm('真的要删除？')" href="index.php?c=admin&a=del&admin=1&id=<?php echo $v['id']?>">
										<i class="halflings-icon white trash"></i>
									</a>
								</td>
							</tr>
                            <?php
                            endforeach;endif;
                            ?>
						  </tbody>
					  </table>
                    </div>
					</div>
				</div><!--/span-->